package com.gcb.mapper;

import com.gcb.entity.Account;

import java.util.List;

public interface AccountMapper {

    void update(Account account);

    List<Account> listAll();

    Account getById(Integer id);

    /**
     *
     * @param account
     * @return
     */
    int subMoney(Account account);

    int addMoney(Account account);

    void save(Account account);

    void delete(Integer id);

}
